//
//  WPToken.m
//  wobingwoyi
//
//  Created by WGP on 16/8/15.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import "WPToken.h"

@implementation WPToken


- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:_account forKey:@"account"];
    [aCoder encodeObject:_name forKey:@"name"];
    [aCoder encodeObject:_password forKey:@"password"];
    [aCoder encodeObject:_userId forKey:@"userId"];
    
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if(self = [super init])
    {
        _account = [aDecoder decodeObjectForKey:@"account"];
        _name = [aDecoder decodeObjectForKey:@"name"];
        _password = [aDecoder decodeObjectForKey:@"password"];
        _userId = [aDecoder decodeObjectForKey:@"userId"];
        
    }
    return self;
}

@end
